package com.hd123.rumba.gwt.widget.client.grid;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class SinglePageDataProvider implements DxGridDataProvider {

  public abstract int getRowCount();

  public abstract int getColumnCount();

  public abstract String getData(int row, int col);

  public void fetch(int page, AsyncCallback callback) {
    
  }

  public int getCurrentPage() {
    return 0;
  }

  public int getPageCount() {
    return 1;
  }

  public int getPageSize() {
    return getRowCount();
  }

  public int getTotalCount() {
    return getRowCount();
  }

  public void setPageSize(int pageSize) {
  }

}
